import java.util.Scanner;

public class Clcpricetest {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        while (true){
            System.out.println("请输入游客的姓名");
            String name=input.next();
            if (name.equals("n"))
            break;
            Clcprice t=new Clcprice();
            t.name=name;
            System.out.println("年龄");
            t.age=input.nextInt();
            int piaojia=t. print();
            System.out.println("这个游客姓名为"+t.name+"年龄为"+t.age+"应付票价"+piaojia);
        }

    }
}
